import { RouteRecordRaw } from 'vue-router'
import { RouterTransition } from '@/components/transition/index'

/**
 * 资源管理路由
 */
const resourceRoutes: Array<RouteRecordRaw> = [
  {
    path: '/resource',
    name: 'Resource',
    component: RouterTransition,
    redirect: '/resource/sharing',
    meta: {
      title: '资源管理'
    },
    children: [
      {
        path: 'sharing',
        name: 'ResourceSharing',
        meta: {
          title: '资源共享'
        },
        component: () => import('@/views/resource/sharing/index.vue')
      },
      {
        path: 'add',
        name: 'ResourceAdd',
        meta: {
          title: '新增资源'
        },
        component: () => import('@/views/resource/Add.vue')
      }
    ]
  }
]

export default resourceRoutes
